/**
 * 
 */
package org.cnbi.utils.chart.json.component;


import org.cnbi.utils.chart.component.Definition;
import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * @company 中国经邦
 * @author Administrator
 * @date: 2014年3月14日下午5:45:52
 * @version: V1.0 { name: 'definedStyle', type: 'font', font: '微软雅黑', size:
 *           '13', bgColor:'FFFFDD', color: '#000' }
 */
public class JsonDefinition extends Definition {

	public JsonDefinition() {
	}

	public JsonDefinition(String name) {
		super(name);
	}

	/**
	 * @param name
	 * @param type
	 * @param font
	 * @param size
	 * @param bgColor
	 * @param color
	 */
	public JsonDefinition(String name, String type, String font, String size, String bgColor, String color) {
		super(name, type, font, size, bgColor, color);
	}

	public JsonDefinition(String name, String type) {
		super(name, type);
	}
   
	@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
	public String getName() {
		return name;
	}
	@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
	public String getType() {
		return type;
	}
	@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
	public String getFont() {
		return font;
	}
	@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
	public String getSize() {
		return size;
	}
	@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
	public String getBgColor() {
		return bgColor;
	}

	public String getColor() {
		return color;
	}

}
